import api from '@/api/index.ts'

// 获取全部数据
export function GetAllDeta(params: any) {
  return api.get('/api/indexact/list', { params })
}
// 获取详情
export function GetDataDetail(id: number) {
  return api.get(`/api/indexact/detail/${id}`)
}
// 添加
export function PostCreateData(params: any) {
  return api.post('/api/indexact/create', params)
}
// 编辑
export function PutModifyData(params: any) {
  return api.put('/api/indexact/modify', params)
}
// 修改状态
export function PatchModifyType(params: any) {
  return api.patch('/api/indexact/modifyenable', params)
}
// 删除
export function DeleteIndexact(id: any) {
  return api.delete(`/api/indexact/delete/${id}`)
}
